#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{
	int line,i, x, k;
	scanf("%d", &line);
	for (i = 1; i <= line; i++)
	{
		for (k = 1; k <= line - i; k++)
			printf(" ");
		for (x = 1; x <= i * 2 - 1; x++)
			printf("*");
		printf("\n");
	}

	for (i=1;i<=line-1;i++)
	{
		for (k = 1; k <= i; k++)//
			printf(" ");
		for (x = 2*line-2*i-1; x >=1; x--)
			printf("*");
		printf("\n");
	}


	

		return 0;
}